package thinkingJava.chapter05;
import static util.Print.*;
public class Flower {
	int petalCount = 0;
	String s = "initial value";
	Flower(int petals) {
		petalCount = petals;
		print("Constructor int arg only");
	}
	Flower(String ss) {
		print("construtctor String arg only");
		s = ss;
	}
	Flower(String ss, int petals) {
		this(petals);
		this.s = ss;
		print("STring & int args");
	}
	Flower() {
		this("new Stirng value", 47);
		print("default constructor without argument!");
	}
	void f() {
//		this(11);
		print("s : " + s + ", petalCount : " + petalCount);
	}
	public static void main(String[] args) {
		Flower f = new Flower();
		f.f();
	}
}
